package com.zzz.profession.controller;


import com.zzz.common.RspResult;
import com.zzz.profession.entity.RProfession;
import com.zzz.profession.service.IRProfessionService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Author
 * @since 2021-12-31
 */
@RestController
@RequestMapping("/profession")
public class RProfessionController {
    @DubboReference(version = "${dubbo.consumer.IRProfessionService.version}")
    IRProfessionService professionService;

    @PostMapping("/add")
    public RspResult<Integer> add(@RequestBody RProfession rProfession){
        return professionService.insertRProfession(rProfession);
    }
}
